﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="PackageHistory.aspx.cs" Inherits="PackageHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .lblWrap
        {
            width: 100px;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: block;
            overflow: hidden;
        }

        .row
        {
            height: 40px;
            vertical-align: middle;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <div class="box">
        <h1>Your Progressing Mailing</h1>
        <asp:GridView ID="gvProgress" runat="server" AutoGenerateColumns="False" CellPadding="2" ForeColor="Black" GridLines="None" Width="100%" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
            <Columns>
                <asp:BoundField HeaderText="ID" DataField="ID" Visible="false" />
                <asp:BoundField HeaderText="Sender" DataField="Sender" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="lblFrom" Width="300px" ToolTip='<%# Eval("SenderLocation") %>' runat="server" Text='<%# Eval("SenderLocation") %>' CssClass="lblWrap"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:BoundField HeaderText="Receiver" DataField="Receiver" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="lblFrom" Width="300px" ToolTip='<%# Eval("ReceiverLocation") %>' runat="server" Text='<%# Eval("ReceiverLocation") %>' CssClass="lblWrap"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="linkView1" runat="server" Text="receipt" NavigateUrl='<%# String.Format("~/Receipt.aspx?barcode={0}",Eval("Barcode")) %>' onclick="javascript:w= window.open(this.href,'Receipt','left=10,top=10,width=700,height=800,toolbar=0,resizable=1');return false;"></asp:HyperLink> 
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="linkView" runat="server" Text="view" NavigateUrl='<%# String.Format("~/TrackPackage.aspx?barcode={0}",Eval("Barcode")) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
 
            </Columns>
            <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
            <RowStyle CssClass="row" />
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
    </div>

    <div class="box">
        <h1>Your Mailing History</h1>
        <asp:GridView ID="gvPackage" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField HeaderText="ID" DataField="ID" Visible="false" />
                <asp:BoundField HeaderText="Sender" DataField="Sender" ItemStyle-HorizontalAlign="Center" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="lblFrom" Width="300px" ToolTip='<%# Eval("SenderLocation") %>' runat="server" Text='<%# Eval("SenderLocation") %>' CssClass="lblWrap"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:BoundField HeaderText="Receiver" DataField="Receiver" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="lblFrom" Width="300px" ToolTip='<%# Eval("ReceiverLocation") %>' runat="server" Text='<%# Eval("ReceiverLocation") %>' CssClass="lblWrap"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="linkView" runat="server" Text="view" NavigateUrl='<%# String.Format("~/TrackPackage.aspx?barcode={0}",Eval("Barcode")) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" CssClass="row" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </div>
</asp:Content>

